package com.alibaba.dubbo.common.utils;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author rain.wen
 * @date 2018/12/26 13:49
 */
public class MyUtils {

    public static void writeClassByteToFile(byte[] bytes, String className) {
        FileOutputStream output = null;
        try {
            output = new FileOutputStream("D:\\tmp\\" + className + ".class");
            output.write(bytes);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                output.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }


    }
}
